import 'package:get/get.dart';
import 'package:study_demo/widgets/loading_dialog.dart';

extension ExtensionGet on GetInterface {
  loading({String? message}) {
    Get.dialog(LoadingDialog(
      message: message ?? 'loading'.tr,
    ));
  }

  dismiss() {
    if (Get.isDialogOpen!) {
      Get.back();
    }
  }
}

extension ExtensionDouble on double {}
